package com.yanqu.road.server.logic.activity.relation.condition;

import com.yanqu.road.entity.activity.ActivityConditionInfo;
import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.server.logic.activity.relation.RelationActivityData;
import com.yanqu.road.server.manger.activity.RelationActivityRankMgr;

public abstract class BaseRelationActivityRankCondition extends BaseRelationActivityCondition {

    public BaseRelationActivityRankCondition(GamePlayer player, RelationActivityData activityData, ActivityConditionInfo conditionInfo) {
        super(player, activityData, conditionInfo);
    }

    protected void rankChange() {
        RelationActivityRankMgr.changeRank(activityData.getActivityId(), player.getUserInfo(), getValue());
    }
}
